/**
 * 切换主题
 * @param isDark 是否为暗黑主题
 */
export const toggleTheme = (isDark: boolean) => {
  if (isDark) {
    document.documentElement.classList.add("dark");
  } else {
    document.documentElement.classList.remove("dark");
  }
};
